package com.springboot.project.common.service;

import com.springboot.project.common.entity.UserOnline;
import com.springboot.project.common.entity.User;
import org.apache.shiro.session.Session;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: lby.
 * Date: 2018/7/7.
 * Version: V1.0.
 */

@Service
public interface SessionService {

    List<UserOnline> list();

    List<User> listOnlineUser();

    Collection<Session> sessionList();

    boolean forceLogout(String sessionId);
}
